﻿@using MealBooking.Core.Models.Accounts;
@{
    ViewBag.HeaderTitle = "Account Detail";
    Layout = "../Shared/_Layout.cshtml";
    Account account = ViewBag.Account;
    Customer customer = ViewBag.Customer;
}
<!--Navbar-->
<div data-role="navbar" data-iconpos="left">
    <div class="float-left">
        <div data-role="controlgroup" data-type="horizontal" data-inset="true" data-mini="true">
            <a href="@Url.Action("EditAccount", new { id = account.Id })" data-role="button">Edit
                User</a> <a href="@Url.Action("EditCustomer", new { id = account.Id })" data-role="button">
                    Edit Balance</a>
        </div>
    </div>
    @Html.Partial("_FloatRightPartial")
</div>
<!--Navbar End-->
<ul data-role="listview" data-inset="true" data-mini="true">
    <li data-role="list-divider">@customer.Name</li>
    @if (account.IsActived)
    {
        <li><span>[Actived]</span></li>
    }
    else
    {
        <li data-theme="e"><span>[Not Actived]</span></li>
    }
    <li>Created Time : @account.RegisterTime</li>
    <li><a href="@Url.Action("BalanceHistory", new { id = account.Id })">
        <p>
            <strong>Balance : @customer.Balance</strong></p>
        <p>
            View Balance History...</p>
    </a></li>
    <li>Credit : @customer.Credit</li>
    <li>Comment : @account.Comment</li>
</ul>
